Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant reset call in playSound onEnded callback #651

Merged
merged 9 commits into from
Sep 19, 2023

Conversation

fisher-alice
Copy link
Contributor

@fisher-alice fisher-alice commented Sep 18, 2023

This PR pairs with code-dot-org/code-dot-org#53817 which adds the ability to configure a preview for the 'setup' blocks on Dance Party levels.

In this PR within p5.dance.js I removed a call to reset in the onEnded callback for playSound. This is a redundant call to reset and caused an issue when preview is enabled - sometimes, the preview did NOT show up when the 'reset' button is clicked because the playSound onEnded callback which included the reset call would be executed AFTER the preview was drawn.

@fisher-alice fisher-alice changed the title Alice/dance preview Remove redundant reset call in playSound onEnded callback Sep 19, 2023
@fisher-alice fisher-alice merged commit 287520a into main Sep 19, 2023
1 check passed
@fisher-alice fisher-alice deleted the alice/dance-preview branch November 3, 2023 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants